<!DOCTYPE html>
<html lang="en" xmlns:v-on="http://www.w3.org/1999/xhtml"
      xmlns:v-bind="http://www.w3.org/1999/xhtml">
<head>
    <meta charset="UTF-8">
    <title>临时费用-详细</title>
    <meta http-equiv="pragma" content="no-cache">
    <meta http-equiv="Cache-Control" content="no-store, must-revalidate">
    <meta http-equiv="expires" content="Wed, 26 Feb 1997 08:21:57 GMT">
    <meta http-equiv="expires" content="-1">
    <meta content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no"
          name="viewport">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <link rel="shortcut icon" href="/dist/img/icon.png" type="image/x-icon">
    <!-- Bootstrap 3.3.6 -->
    <link rel="stylesheet" href="/dist/plugins/bootstrap/css/bootstrap.min.css">
    <!--字体-->
    <link rel="stylesheet" href="/dist/css/font-awesome.min.css">
    <!--图标-->
    <link rel="stylesheet" href="/dist/css/ionicons.min.css">
    <!--插件样式-->
    <link href="/dist/plugins/ztree/css/zTreeStyle/zTreeStyle.css" rel="stylesheet"/>
    <link rel="stylesheet" href="/dist/plugins/webuploader-0.1.5/webuploader.css">
    <!--OA主样式-->
    <link rel="stylesheet" href="/dist/css/OA.min.css?t=f5a12a1d">
    <link rel="stylesheet" href="/dist/css/skins/OA-skins.min.css?t=16f1e6f3">
    <style type="text/css">
        .user {
            height: 30px;
            line-height: 30px;
            max-height: 30px;
            float: left;
            text-align: left;
            min-width: 32px;
            padding-left: 1px;
            overflow: hidden;
            cursor: pointer;
        }

        .user:hover {
            background-color: #cfd4d1;
        }

        .userbox .select.user {
            color: #fff;
            background-color: #045B9E;
        }

        .span-btn {
            position: absolute;
            left: 10px;
            margin-top: 4px;
            cursor: pointer;
        }

        .auditorName {
            text-align: center;
        }

        .IcoNormal {
            float: left;
            border-bottom: 0px;
            border-left: 0px;
            background-color: transparent;
            width: 16px;
            height: 16px;
            vertical-align: middle;
            border-top: 0px;
            border-right: 0px;
            background-image: url(/dist/img/upload_normal.gif);
            background-repeat: no-repeat;
            float: left;
        }

        .progressobj {
            height: 20px;
        }

        .progressobj .delfile {
            float: left;
            margin-left: 10px;
        }

        .select {
            color: #fff;
            background-color: #045B9E;
        }

        td .sp-value {
            display: inline-block;
            padding-left: 6px;
            word-wrap: break-word;
        }

        td {
            color: #2a8cec;
        }

        td.td-title, td select, td .filename, td.td-module {
            color: black;
        }

        .table-detail-payee:nth-child(even) td.td-title {
            background-color: white;
        }

        .printDiv {
            display: none;
        }
        .imgStyle{
            width: 250px;
            height: 250px;
        }

    </style>
</head>
<body>
<iframe id="ifAttach" style="display:none"></iframe>
<div class="layout" style="left:0px;top:0px;right:0px;bottom:0px;" id="app">

    <div class="center" style="overflow:auto;overflow-x:hidden;padding-left:8px;padding-right:8px;">
        <table class="table-detail" v-if="list.main.costSmallId==15||list.main.costSmallId==18" >
            <tr class="no-print">
                <td colspan="4" class=" no-print td-module" style="background: yellow">基本信息</td>
            </tr>
            <tr>
                <td style="width:25%;" class="td-title">费用类型</td>
                <td style="width:25%;">{{list.main.costSmallName}}</td>
                <td style="width:25%;" class="td-title">申请人</td>
                <td style="width:25%;">{{list.main.createUserName}}</td>
            </tr>
            <tr >
                <td style="width:25%;" class="td-title">车牌号</td>
                <td style="width:25%;">{{list.cost.license}}</td>
                <td style="width:25%;" class="td-title">公里数</td>
                <td style="width:25%;">{{list.cost.mileage}}</td>
            </tr>
            <tr>
                <td class="td-title">金额(元)</td>
                <td colspan="3" style="text-align: left;">
                    <span class="sp-value">{{list.main.money}}</span>
                </td>

            </tr>
            <tr>
                <td class="td-title">附件</td>
                <td colspan="3">
                    <img @click="openImg(item)" v-for="item in imglist" style="cursor:pointer;width: 50px;float:left;margin-right: 5px;" :src="item" alt="">
                    <span v-if="!imglist||imglist.length==0" class="sp-value">无</span>
                </td>

            </tr>
        </table>
        <table class="table-detail" v-if="list.main.costSmallId==27" >
            <tr class="no-print">
                <td colspan="4" class=" no-print td-module" style="background: yellow">基本信息</td>
            </tr>
            <tr>
                <td style="width:25%;" class="td-title">费用类型</td>
                <td style="width:25%;">{{list.main.costSmallName}}</td>
                <td style="width:25%;" class="td-title">申请人</td>
                <td style="width:25%;">{{list.main.createUserName}}</td>
            </tr>
            <tr >
                <td style="width:25%;" class="td-title">住宿人数</td>
                <td style="width:25%;">{{list.cost.residence}}</td>
                <td style="width:25%;" class="td-title">金额（元）</td>
                <td style="width:25%;">{{list.main.money}}</td>
            </tr>
            <tr>
                <td class="td-title">同住人员</td>
                <td colspan="3" style="text-align: left;">
                    <span class="sp-value">{{list.cost.cohabitation}}</span>
                </td>
            </tr>
            <tr>
                <td class="td-title">宾馆名称</td>
                <td colspan="3" style="text-align: left;">
                    <span class="sp-value">{{list.cost.hotelName}}</span>
                </td>
            </tr>
            <tr>
                <td class="td-title">宾馆电话</td>
                <td colspan="3" style="text-align: left;">
                    <span class="sp-value">{{list.cost.hotelTel}}</span>
                </td>
            </tr>
            <tr>
                <td class="td-title">说明</td>
                <td colspan="3" style="text-align: left;">
                    <span class="sp-value">{{list.main.remark}}</span>
                </td>
            </tr>
            <tr>
                <td class="td-title">附件</td>
                <td colspan="3"  >
                    <img @click="openImg(item)" v-for="item in imglist" style="cursor:pointer;width: 50px;float:left;margin-right: 5px;" :src="item" alt="">
                    <span v-if="!imglist||imglist.length==0" class="sp-value">无</span>
                </td>

            </tr>
        </table>
        <table class="table-detail" v-if="list.main.costSmallId==36" >
            <tr class="no-print">
                <td colspan="4" class=" no-print td-module" style="background: yellow">基本信息</td>
            </tr>
            <tr>
                <td style="width:25%;" class="td-title">费用类型</td>
                <td style="width:25%;">{{list.main.costSmallName}}</td>
                <td style="width:25%;" class="td-title">申请人</td>
                <td style="width:25%;">{{list.main.createUserName}}</td>
            </tr>
            <tr >
                <td style="width:25%;" class="td-title">被招待人</td>
                <td style="width:25%;">{{list.cost.host}}</td>
                <td style="width:25%;" class="td-title">招待人性质</td>
                <td style="width:25%;">{{list.cost.guestNature}}</td>
            </tr>
            <tr >
                <td style="width:25%;" class="td-title">招待人数</td>
                <td style="width:25%;">{{list.cost.guests}}</td>
                <td style="width:25%;" class="td-title">金额(元)</td>
                <td style="width:25%;">{{list.main.money}}</td>
            </tr>
            <tr>
                <td class="td-title">娱乐地点</td>
                <td colspan="3" style="text-align: left;">
                    <span class="sp-value">{{list.cost.entertainmentVenue}}</span>
                </td>
            </tr>
            <tr>
                <td class="td-title">联系电话</td>
                <td colspan="3" style="text-align: left;">
                    <span class="sp-value">{{list.cost.phone}}</span>
                </td>
            </tr>
            <tr>
                <td class="td-title">说明</td>
                <td colspan="5" style="text-align: left;">
                    <span class="sp-value">{{list.main.remark}}</span>
                </td>
            </tr>
            <tr>
                <td class="td-title">附件</td>
                <td colspan="3">
                    <img @click="openImg(item)" v-for="item in imglist" style="cursor:pointer;width: 50px;float:left;margin-right: 5px;" :src="item" alt="">
                    <span v-if="!imglist||imglist.length==0" class="sp-value">无</span>
                </td>

            </tr>
        </table>
        <table class="table-detail" v-if="list.main.costSmallId==38" >
            <tr class="no-print">
                <td colspan="4" class=" no-print td-module" style="background: yellow">基本信息</td>
            </tr>
            <tr>
                <td style="width:25%;" class="td-title">费用类型</td>
                <td style="width:25%;">{{list.main.costSmallName}}</td>
                <td style="width:25%;" class="td-title">申请人</td>
                <td style="width:25%;">{{list.main.createUserName}}</td>
            </tr>
            <tr >
                <td style="width:25%;" class="td-title">出发前里程</td>
                <td style="width:25%;">{{list.cost.beforeOffice}}</td>
                <td style="width:25%;" class="td-title">返程后里程</td>
                <td style="width:25%;">{{list.cost.afterOffice}}</td>
            </tr>
            <tr>
                <td style="width:25%;" class="td-title">行驶里程</td>
                <td style="width:25%;" v-if="lc<0">0</td>
                <td style="width:25%;" v-else>{{lc}}</td>
                <td class="td-title">金额(元)</td>
                <td  style="text-align: center;">
                    <span class="sp-value">{{list.main.money}}</span>
                </td>
            </tr>

            <tr>
                <td class="td-title">说明</td>
                <td colspan="3" style="text-align: left;">
                    <span class="sp-value">{{list.main.remark}}</span>
                </td>
            </tr>
            <tr>
                <td class="td-title">附件</td>
                <td colspan="3">
                    <img @click="openImg(item)" v-for="item in imglist" style="cursor:pointer;width: 50px;float:left;margin-right: 5px;" :src="item" alt="">
                    <span v-if="!imglist||imglist.length==0" class="sp-value">无</span>
                </td>

            </tr>
        </table>
        <table class="table-detail" v-if="list.main.costSmallId==25" >
            <tr class="no-print">
                <td colspan="4" class=" no-print td-module" style="background: yellow">基本信息</td>
            </tr>
            <tr>
                <td style="width:25%;" class="td-title">费用类型</td>
                <td style="width:25%;">{{list.main.costSmallName}}</td>
                <td style="width:25%;" class="td-title">申请人</td>
                <td style="width:25%;">{{list.main.createUserName}}</td>
            </tr>
            <tr >
                <td style="width:25%;" class="td-title">被招待人</td>
                <td style="width:25%;">{{list.cost.host}}</td>
                <td style="width:25%;" class="td-title">招待人性质</td>
                <td style="width:25%;">{{list.cost.guestNature}}</td>
            </tr>
            <tr >
                <td style="width:25%;" class="td-title">招待人数</td>
                <td style="width:25%;">{{list.cost.guests}}</td>
                <td style="width:25%;" class="td-title">金额(元)</td>
                <td style="width:25%;">{{list.main.money}}</td>
            </tr>
            <tr>
                <td class="td-title">餐馆名称</td>
                <td colspan="3" style="text-align: left;">
                    <span class="sp-value">{{list.cost.restaurantName}}</span>
                </td>
            </tr>
            <tr>
                <td class="td-title">餐馆电话</td>
                <td colspan="3" style="text-align: left;">
                    <span class="sp-value">{{list.cost.restaurantTel}}</span>
                </td>
            </tr>
            <tr>
                <td class="td-title">说明</td>
                <td colspan="3" style="text-align: left;">
                    <span class="sp-value">{{list.main.remark}}</span>
                </td>
            </tr>
            <tr>
                <td class="td-title">附件</td>
                <td colspan="3">
                    <img @click="openImg(item)" v-for="item in imglist" style="cursor:pointer;width: 50px;float:left;margin-right: 5px;" :src="item" alt="">
                    <span v-if="!imglist||imglist.length==0" class="sp-value">无</span>
                </td>

            </tr>
        </table>
        <table class="table-detail" v-if="list.main.costSmallId==39" >
            <tr class="no-print">
                <td colspan="4" class=" no-print td-module" style="background: yellow">基本信息</td>
            </tr>
            <tr>
                <td style="width:25%;" class="td-title">费用类型</td>
                <td style="width:25%;">{{list.main.costSmallName}}</td>
                <td style="width:25%;" class="td-title">申请人</td>
                <td style="width:25%;">{{list.main.createUserName}}</td>
            </tr>
            <tr>
                <td class="td-title">金额(元)</td>
                <td colspan="3" style="text-align: left;">
                    <span class="sp-value">{{list.main.money}}</span>
                </td>

            </tr>
            <tr>
                <td class="td-title">说明</td>
                <td colspan="3" style="text-align: left;">
                    <span class="sp-value">{{list.main.remark}}</span>
                </td>
            </tr>
            <tr>
                <td class="td-title">附件</td>
                <td colspan="3">
                    <img @click="openImg(item)" v-for="item in imglist" style="cursor:pointer;width: 50px;float:left;margin-right: 5px;" :src="item" alt="">
                    <span v-if="!imglist||imglist.length==0" class="sp-value">无</span>
                </td>

            </tr>
        </table>
        <table class="table-detail" v-if="list.main.costSmallId==40" >
            <tr class="no-print">
                <td colspan="4" class=" no-print td-module" style="background: yellow">基本信息</td>
            </tr>
            <tr>
                <td style="width:25%;" class="td-title">费用类型</td>
                <td style="width:25%;">{{list.main.costSmallName}}</td>
                <td style="width:25%;" class="td-title">申请人</td>
                <td style="width:25%;">{{list.main.createUserName}}</td>
            </tr>
            <tr >
                <td style="width:25%;" class="td-title">招待对象</td>
                <td style="width:25%;">{{list.cost.host}}</td>
                <td style="width:25%;" class="td-title">招待人数</td>
                <td style="width:25%;">{{list.cost.guests}}</td>
            </tr>
            <tr >
                <td style="width:25%;" class="td-title">预计金额</td>
                <td style="width:25%;">{{list.cost.predictMoney}}</td>
                <td style="width:25%;" class="td-title">实际金额(元)</td>
                <td style="width:25%;">{{list.main.money}}</td>
            </tr>
            <tr>
                <td class="td-title">饭店名称</td>
                <td colspan="3" style="text-align: left;">
                    <span class="sp-value">{{list.cost.restaurantName}}</span>
                </td>
            </tr>
            <tr>
                <td class="td-title">说明</td>
                <td colspan="3" style="text-align: left;">
                    <span class="sp-value">{{list.main.remark}}</span>
                </td>
            </tr>
            <tr>
                <td class="td-title">附件</td>
                <td colspan="3">
                    <img @click="openImg(item)" v-for="item in imglist" style="cursor:pointer;width: 50px;float:left;margin-right: 5px;" :src="item" alt="">
                    <span v-if="!imglist||imglist.length==0" class="sp-value">无</span>
                </td>
            </tr>
        </table>
        <table class="table-detail" v-if="list.main.costSmallId!=18">
            <tr class="no-print">
                <td colspan="4" class=" no-print td-module" style="background: yellow">审批进度</td>
            </tr>
            <tr>
                <td style="width:25%;" class="td-title">审核人</td>
                <td style="width:25%;">{{list.auditors.auditorName}}</td>
                <td class="td-value1" style="width: 100px">
                    <span v-if="list.auditors.auditFlag=='0'" style="color: red">审核中</span>
                    <span v-if="list.auditors.auditFlag=='1'" style="color: green">同意!</span>
                    <span v-if="list.auditors.auditFlag=='2'" style="color: red">驳回</span>
                </td>
                <td style="width:25%;">{{list.auditors.auditTime}}</td>
            </tr>
            <tr>
                <td class="td-title">抄送</td>
                <td colspan="3" style="text-align: left;">
                    <span class="sp-value" v-for="(item,i) in copierslist">{{item.copyPersonName}};</span>
                </td>
            </tr>
            <tr v-if="list.main.copierReturnReason&&list.main.auditFlag=='2'">
                <td class="td-title">抄送人驳回</td>
                <td colspan="3" style="text-align: left;">
                    <span class="sp-value">{{list.main.copierReturnReason}}</span>
                </td>
            </tr>
            <tr v-if="list.main.copierReturnReason==''&&list.auditors.auditFlag=='2'">
                <td class="td-title">驳回原因</td>
                <td colspan="3" style="text-align: left;">
                    <span class="sp-value">{{list.auditors.auditAdvise}}</span>
                </td>
            </tr>
        </table>

    </div>

</div>
<script src="https://file.ggxqce.com/web/jquery-2.2.3.min.js"></script>
<!--插件JS-->
<script src="https://file.ggxqce.com/web/bootstrap.min.js"></script>
<!--框架已定义 JS-->
<script src="/dist/js/app_iframe.js?t=7e54a132"></script>
<!--oa自定义  JS-->
<script src="/dist/js/oa.js?t=63aed32f"></script>

<script src="https://file.ggxqce.com/web/vue.min.js"></script>
<script type="text/javascript" src="/dist/plugins/My97DatePicker/WdatePicker.js"></script>
<!--ztree组件所需js-->
<script type="text/javascript" src="/dist/plugins/ztree/js/jquery.ztree.all-3.5.min.js"></script>
<script type="text/javascript" src="/dist/plugins/ztree/js/jquery.ztree.exhide-3.5.js"></script>
<script src="/dist/plugins/webuploader-0.1.5/webuploader.min.js"></script>
<script type="text/javascript" src="/dist/js/pages/apply/money/class.js"></script>
<script type="text/javascript" src="/dist/js/pages/system/systemService.js"></script>
<script type="text/javascript" src="/dist/js/pages/common/commonService.js"></script>
<script type="text/javascript" src="/dist/js/pages/common/changeMoneyToChinese.js"></script>
<script type="text/javascript" src="/dist/plugins/print/print.js"></script>
<script type="text/javascript" src="/dist/plugins/lhgdialog/lhgdialog.min.js?self=true"></script>
<script type="text/javascript">
    var api = frameElement.api, W = api.opener;

    function refresh() {

    }

    var app = new Vue({
        el: "#app",
        data: {
            imglist: [],
            copierslist: [],
            flag: false,
            lc: 0,
            pageType: $.wyui.page.urlParams.pageType,
            list: {
                auditors: {
                    auditAdvise: "",
                    auditFlag: "",
                    auditSort: 0,
                    auditTime: "",
                    auditorId: "",
                    auditorName: "",
                    fkCostId: "",
                    id: ""
                },
                copiers: {
                    copyPersonId: "",
                    copyPersonName: "",
                    fkCostId: "",
                    id: ""
                },
                cost: {
                    afterOffice: "",
                    beforeOffice: "",
                    entertainmentVenue: "",
                    fkCostId: "",
                    guestNature: "",
                    guests: "6",
                    host: "1",
                    hotelName: "",
                    hotelTel: "",
                    id: "",
                    img: "",
                    license: "",
                    mileage: "",
                    officeMatters: "",
                    phone: "",
                    residence: "",
                    cohabitation: "",
                    restaurantName: "",
                    restaurantTel: "",
                    predictMoney: ""
                },
                main: {
                    auditFlag: "",
                    copierReturnReason: "",
                    costBigId: "",
                    costBigName: "",
                    costSmallId: "",
                    costSmallName: "",
                    createUserId: "",
                    createUserName: "",
                    currentAuditorId: "",
                    currentAuditorName: "",
                    id: "",
                    invoiceFlag: "",
                    money: 0.00,
                    remark: "",
                    reportDate: "",
                    start: "",
                    wid: ""
                }
            }
        },
        methods: {
            openImg:function (url) {
                top.$.dialog({
                    title: '图片详情',
                    content: 'url:/page/showImg.html?url=' + url,
                    height: 500,
                    max: true,
                    min: false,
                    lock: true
                }).max();
            }

        },


        mounted: function () {
            var that=this;
            var arr;
            $.wyui.postMethod('/wreportCost/getById.json', {
                id:$.wyui.page.urlParams.id
            }, function (r) {
                console.log(r)
                that.list=r;
                that.list.auditors = r.auditors[0];
                that.lc=r.cost.afterOffice-r.cost.beforeOffice;
                if(r.cost.img){
                    arr=r.cost.img.split(",");
                }else{
                    arr=[];
                }

                that.imglist=arr;
                console.log(that.imglistss,that.list.main.costSmallId)
                that.copierslist = r.copiers;
            })
        }
    });
</script>

</body>
</html>